<@mits.headerDiv />

   <script type='text/javascript' src='${base}/dwr/interface/trackLogMgr.js'></script>
  <script type='text/javascript' src='${base}/dwr/engine.js'></script>
  <script type='text/javascript' src='${base}/dwr/util.js'></script>
<div class="Main" id="Main">
	<!--屏幕切换-->
   
    
    
	<!--左边-->
	<!--右边-->
	<div class="Main_body" id="Main_body">
	
		<div class="Main_right_line"></div>
		
		  <div class="Main_bodyListBar">
				<div class="Main_bodyListBar_head"><span>最新报警列表</span> </div>
				
				
	    <div class="Main_bodyListBar_body">
	  
				  <table border="0" cellpadding="0" cellspacing="0" class="listTable">
					<tr align="center">
					  <th  >车牌号码</th>
					  <th  >号牌种类</th>
					  <th  >过车时间</th>
					  <th  >经过地点</th>
					  <th  >车道</th>
					  <th  >速度（km/h）</th>
					  <th  >方向</th>
					  <th  >详情</th>
					</tr>
					<#if alarmTrackLogs?exists>
                <#list alarmTrackLogs as tracklog>                 
					<tr onmouseover="listTable_trMouseOver(this)" onmouseout="listTable_trMouseOut(this)">					 					
				      <td>${tracklog?if_exists.plateNumber?if_exists}</td> 
					  <td>${tracklog?if_exists.plateType?if_exists}</td>
					  <td>${tracklog?if_exists.passTime?if_exists}&nbsp;</td>
					  <td>${tracklog?if_exists.passPortName?if_exists}&nbsp;</td>
					  <td>${tracklog?if_exists.laneName?if_exists}&nbsp;</td>
					  <td><#if  tracklog?exists && tracklog.speed <= 0>未知<#else>${tracklog?if_exists.speed?if_exists}</#if>&nbsp;</td>
					  <td>${tracklog?if_exists.direction?if_exists}&nbsp;</td>
					 <td><a href="javascript:onClick=detail('${tracklog?if_exists.alarmId?if_exists}')">详情</a></td>
					</tr>
					</#list>
				</#if>				
				  </table>
		
			</div>
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button" id="btnSpan">
				 
				  <a href="javascript:onClick=stop();" ><font size="4" color="red">停    止</font></a>
				
				  </div>
				
				</div>
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
	
</div>
		 
<@mits.footerDiv />
<script type="text/javascript">
var timeHandler;
function initRefrash(){
	
  timeHandler=setTimeout("location.reload()",5000);

}
function stopRefrash(){
   
	if(timeHandler !=undefined){
		clearTimeout(timeHandler);
		timeHandler=undefined;
	}
	

}
function start() {
	$('btnSpan').innerHTML = '';
	$('btnSpan').innerHTML ='<a href="javascript:onClick=stop();"><font size="4" color="red">停    止</font></a>';
	timeHandler=setTimeout("location.reload()",5000);

	//window.frames.checkFrash.iframeRefrash();
}
function stop() {
	$('btnSpan').innerHTML = '';
	$('btnSpan').innerHTML ='<a href="javascript:onClick=start();"><font size="4" color="red">开    始</font></a>';
	stopRefrash();
	//window.frames.checkFrash.iframeStopRefrash();
}
window.onload = initRefrash;
function detail(alarmId) {
 window.location = "${base}/auth/alarm/realtimeAlarmDetail.action?alarmId="+alarmId;
}
</script>
